home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / alsa / cards / ICH4.conf < prev    next >
Text File  |  2006-01-09  |  3KB  |  215 lines

  1. #
  2. # Configuration for the Intel ICH4/ICH5/ICH6 chips
  3. #
  4.  
  5. <confdir:pcm/front.conf>
  6.  
  7. ICH4.pcm.front.0 {
  8.     @args [ CARD ]
  9.     @args.CARD {
  10.         type string
  11.     }
  12.     type softvol
  13.     slave.pcm {
  14.         type hw
  15.         card $CARD
  16.         device 0
  17.     }
  18.     control {
  19.         name "PCM Playback Volume"
  20.         card $CARD
  21.     }
  22. }    
  23.  
  24. # default with dmix+softvol & dsnoop
  25. ICH4.pcm.default {
  26.     @args [ CARD ]
  27.     @args.CARD {
  28.         type string
  29.     }
  30.     type asym
  31.     playback.pcm {
  32.         type plug
  33.         slave.pcm {
  34.             type softvol
  35.             slave.pcm {
  36.                 @func concat
  37.                 strings [ "dmix:" $CARD ]
  38.             }
  39.             control {
  40.                 name "PCM Playback Volume"
  41.                 card $CARD
  42.             }
  43.         }
  44.     }
  45.     capture.pcm {
  46.         type plug
  47.         slave.pcm {
  48.             @func concat
  49.             strings [ "dsnoop:" $CARD ]
  50.         }
  51.     }
  52. }
  53.  
  54. <confdir:pcm/surround40.conf>
  55.  
  56. ICH4.pcm.surround40.0 {
  57.     @args [ CARD ]
  58.     @args.CARD {
  59.         type string
  60.     }
  61.     type softvol
  62.     slave.pcm {
  63.         type hooks
  64.         slave.pcm {
  65.             type hw
  66.             card $CARD
  67.             device 0
  68.         }
  69.         hooks.0 {
  70.             type ctl_elems
  71.             hook_args [
  72.             {
  73.                 name "Channel Mode"
  74.                 preserve true
  75.                 value "4ch"
  76.                 lock true
  77.                 optional true
  78.             }
  79.             # for old drivers
  80.             {
  81.                 name "Line-In As Surround"
  82.                 preserve true
  83.                 value true
  84.                 optional true
  85.             }
  86.             {
  87.                 name "Surround Down Mix"
  88.                 preserve true
  89.                 value off
  90.                 lock true
  91.                 optional true
  92.             }
  93.             ]
  94.         }
  95.     }
  96.     control {
  97.         name "PCM Playback Volume"
  98.         card $CARD
  99.     }
  100. }
  101.  
  102. <confdir:pcm/surround41.conf>
  103. <confdir:pcm/surround50.conf>
  104. <confdir:pcm/surround51.conf>
  105.  
  106. ICH4.pcm.surround51.0 {
  107.     @args [ CARD ]
  108.     @args.CARD {
  109.         type string
  110.     }
  111.     type softvol
  112.     slave.pcm {
  113.         type hooks
  114.         slave.pcm {
  115.             type hw
  116.             card $CARD
  117.             device 0
  118.         }
  119.         hooks.0 {
  120.             type ctl_elems
  121.             hook_args [
  122.             {
  123.                 name "Channel Mode"
  124.                 preserve true
  125.                 value "6ch"
  126.                 lock true
  127.                 optional true
  128.             }
  129.             # for old drivers
  130.             {
  131.                 name "Line-In As Surround"
  132.                 preserve true
  133.                 value true
  134.                 optional true
  135.             }
  136.             {
  137.                 name "Mic As Center/LFE"
  138.                 preserve true
  139.                 value true
  140.                 optional true
  141.             }
  142.             {
  143.                 name "Surround Down Mix"
  144.                 preserve true
  145.                 value off
  146.                 lock true
  147.                 optional true
  148.             }
  149.             {
  150.                 name "Center/LFE Down Mix"
  151.                 preserve true
  152.                 value off
  153.                 lock true
  154.                 optional true
  155.             }
  156.             ]
  157.         }
  158.     }
  159.     control {
  160.         name "PCM Playback Volume"
  161.         card $CARD
  162.     }
  163. }
  164.  
  165. <confdir:pcm/iec958.conf>
  166.  
  167. ICH4.pcm.iec958.0 {
  168.     @args [ CARD AES0 AES1 AES2 AES3 ]
  169.     @args.CARD {
  170.         type string
  171.     }
  172.     @args.AES0 {
  173.         type integer
  174.     }
  175.     @args.AES1 {
  176.         type integer
  177.     }
  178.     @args.AES2 {
  179.         type integer
  180.     }
  181.     @args.AES3 {
  182.         type integer
  183.     }
  184.     type hooks
  185.     slave.pcm {
  186.         type hw
  187.         card $CARD
  188.         device 4
  189.     }
  190.     hooks.0 {
  191.         type ctl_elems
  192.         hook_args [
  193.             {
  194.                 name "IEC958 Playback AC97-SPSA"
  195.                 lock true
  196.                 preserve true
  197.                 value 3
  198.                 optional true
  199.             }
  200.             {
  201.                 name "IEC958 Playback Default"
  202.                 lock true
  203.                 preserve true
  204.                 value [ $AES0 $AES1 $AES2 $AES3 ]
  205.             }
  206.             {
  207.                 name "IEC958 Playback Switch"
  208.                 lock true
  209.                 preserve true
  210.                 value true
  211.             }
  212.         ]
  213.     }
  214. }
  215.